<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>智战疫 | 科普知识</title>
    <link rel="shortcut icon"type="image/ico"href="p1.ico">
    <style>
        .one1 {
            clear: both;
            height: 0;
            height: 0;
            overflow: hidden;
        }
        .search{
            background:##fdfcf8;
            overflow:hidden;
            width:300px;
            height:45px;
            margin-top:60px;
            margin-left:10px;
        }
        .s_btn{
            background:#0fb264;
            border-radius:0 8px 8px 0;
            font-size:16px;
            overflow:hidden;
            width:80px;
            height:50px;
            margin-top:60px;
            position:absolute;
        }
        .two-list li{
            float:left;
            position:relative;
            margin-left:80px;
            margin-top:5px;
            font-size:20px;
        }
        .middle1 {
            clear: both;
            height: 0;
            height: 0;
            overflow: hidden;
        }
        .info1 {
            clear: both;
            height: 0;
            height: 0;
            overflow: hidden;
        }
        table
        {
            border-collapse: collapse;
            margin: 0 auto;
            text-align: center;
            float:left;
            margin-top:15px;
        }
        table td, table th
        {
            border: 1px solid #cad9ea;
            color: #666;
            height: 30px;
        }
        table thead th
        {
            background-color: #CCE8EB;
            width: 100px;
        }
        table tr:nth-child(odd)
        {
            background: #fff;
        }
        table tr:nth-child(even)
        {
            background: #F5FAFA;
        }
    </style>
</head>
<body>
    <div style="height:1000px;width:1500px;border-width: 1px;border-style: solid">
        <div class="header"style="height:200px;margin-left:10px;margin-right:10px;margin-top:5px;background-color:#fdfcf8">
            <div class="one"style="height:120px;background-color:#fdfcf8;">
                <form action="/Forth">
                <div class="one1"style="height:120px;width:200px;background-color:#fdfcf8;display: inline-block;">
                    <img src="../static/4.1.jpg" alt="Error"style="float:right;margin-top:60px;height:50px;width:50px;">
                </div><div class="one1"style="height:120px;width:250px;background-color:#fdfcf8; display: inline-block;">
                    <h1 style="margin-top:60px;margin-left:20px;height:40px;">科普知识</h1>
                </div><div class="one1"style="height:120px;width:120px;display:inline-block;background-color:#fdfcf8;">
                    <img src="../static/4.2.jpg" alt="Error"style="float:right;margin-top:60px;height:45px;width:40px;">
                </div><div class="one1"style="height:120px;width:500px;display:inline-block;background-color:#fdfcf8;">
                    <input id="search"type="text"value="请输入关键词"class="search"name="uname">
                    <input type="submit"tabindex="3"id="su"value="搜索"class="s_btn">
                </div>
                    </form>
                    <div class="one1"style="height:120px;width:410px;display:inline-block;background-color:#fdfcf8;">
                    <!--<img src="p1.ico" alt="Error"style="width:210px;height:120px;margin-top:10px;float:right;">-->
                </div>
            </div>
            <div class="two"style="margin-top:30px;height:40px;background-color:#fdfcf8;">
                <ul class="two-list">
                    <li>首页</li>
                    <li>常见科普知识</li>
                    <li>热门搜索</li>
                    <li>关键词搜索</li>
                </ul>
                <button id="btn0" class="btn0" style="margin-top: 10px;float:right;width:60px"
                    onclick = "window.location.href = 'http://127.0.0.1:5000/Second'">返回</button>
            </div>
        </div>
        <div class="middle"style="height:780px;margin-left:10px;margin-right:10px;margin-top:5px;background-color:#fdfcf8;">
            <div id="info"class="middle1"style="letter-spacing:1px;line-height:30px;
            height:780px;width:1000px;margin-left:10px;border-style: double;display: inline-block;">
                <div class="info1"style="width:500px;height:780px;overflow-y:auto; overflow-x:auto;overflow:scroll;display: inline-block;">
                    <div style="margin-left:10px" class="xinxi1">
                         {#{{ res }}#}
                         <table class="table">
                        <tr>
                                 <td>科普知识</td>
                          <tr>
                         {% for u in res %}
                             <tr>
                                 <td><a href="{{ u[2] }}">{{ u[1] }}</a></td>
                             </tr>
                         {% endfor %}
                         </table>
                    </div>
                </div><div class="info1"style="width:500px;height:780px;overflow-y:auto; overflow-x:auto;overflow:scroll;display: inline-block;">
                    <div style="margin-right:10px" class="xinxi2">
                        {#{{ res2 }}#}
                         <table border="1">
                        <tr>

                            <td>热门搜索</td>
                        <tr>
                         {% for u2 in res2 %}
                          <tr>
                             <td><a href="{{ u2[2] }}">{{ u2[1] }}</a></td>

                          </tr>

                         {% endfor %}
                         </table>
                    </div>
                </div>
            </div>
            <div class="middle1"style="height:780px;width:450px;display: inline-block;border-style: double">
                <div id=demo style="overflow:hidden; width:430px; height:780px;margin-left:10px;">
                    <div id=demo1>
                        <img src="../static/4.4.1.jpg"style="height:2000px;width:430px;"><br><img src="../static/4.4.2.jpg"style="height:2000px;width:430px;"><br>
                        <img src="../static/4.4.3.jpg"style="height:2000px;width:430px;"><br><img src="../static/4.4.4.jpg"style="height:2000px;width:430px;"><br>
                        <img src="../static/4.4.5.jpg"style="height:2000px;width:430px;"><br><img src="../static/4.4.6.jpg"style="height:2000px;width:430px;"><br>
                        <img src="../static/4.4.7.jpg"style="height:2000px;width:430px;"><br><img src="../static/4.4.8.jpg"style="height:2000px;width:430px;"><br>
                    </div>
                    <div id=demo2></div>
                </div>
                <script language="javascript">
                     var speed=4
                     demo2.innerHTML=demo1.innerHTML
                     function Marquee(){
                         if(demo2.offsetTop-demo.scrollTop<=0)
                            demo.scrollTop-=demo1.offsetHeight
                         else{
                            demo.scrollTop++
                         }
                     }
                     var MyMar=setInterval(Marquee,speed)
                     demo.onmouseover=function() {clearInterval(MyMar)}
                     demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
                 </script>
            </div>

        </div>
    </div>

</body>
</html>